package main

import (
	"encoding/base64"
	"fmt"
)

func main() {
	s := "heal the world, make it a better place"

	encodeStd := "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"

	s64 := base64.NewEncoding(encodeStd).EncodeToString([]byte(s))
	fmt.Println("base64.NewEncoding(encodeStd).EncodeToString")

	fmt.Println(len(s))
	fmt.Println(len(s64))
	fmt.Println(s)
	fmt.Println(s64)

	s64_std := base64.StdEncoding.EncodeToString([]byte(s))
	fmt.Println("base64.StdEncoding.EncodeToString")
	fmt.Println(len(s))
	fmt.Println(len(s64_std))
	fmt.Println(s)
	fmt.Println(s64_std)

}
